#include <iostream>
#include <cmath>
using namespace std;
int main(){
	double x = -1.8;
	double y = 1.5;
	double result = pow(x * x + y * y - 1, 3)- x * x * pow(y, 3);
	cout << result << endl;
	return 0;
}
